package xj.graph2d.app.project;

public enum ProjectType {

  Default, UML, VisualProgram, ZOOM; 

  static public ProjectType toProjectType(String name) {
    if (name != null) { 
      name = name.toLowerCase();
      if ("default".equals(name)) {
	return Default;
      } else if ("uml".equals(name)) {
	return UML;
      } else if ("visualprogram".equals(name) || 
		 "visual program".equals(name)) {
	return VisualProgram; 
      } else if ("zoom".equals(name)) {
	return ZOOM; 
      }
    }
    return null;
  }

}
